import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
    history: createWebHistory(),
    routes: [{
        path: '/',
        redirect: '/home'
    }, {
        path: '/home',
        name: 'home',
        component: () => import('../Views/layout.vue')
    }, {
        path: '/login',
        name: 'login',
        component: () => import('../Views/login.vue')
    }]
})

export default router